PROJECT_HOME=../../
OBJS= main.o certifier.o\
	  $(PROJECT_HOME)/online-certifier/communicator/communicatorUtil.o\
      $(PROJECT_HOME)/online-certifier/communicator/frontendCommunicator.o\
      $(PROJECT_HOME)/online-certifier/user-functions/*.o
LDFLAGS= $(Linbox)

CXXFLAGS= -c -I$(PROJECT_HOME) $(Linbox) -O3

CC=g++

all: frontend
frontend: $(OBJS)
	$(CC) -o frontend $(OBJS) $(LDFLAGS)
	cp frontend ../bin/
	cp frontend.conf ../bin/

main.o: main.cpp 
	$(CC) $(CXXFLAGS) main.cpp 

certifier.o: certifier.cpp certifier.hh
	$(CC) $(CXXFLAGS) certifier.cpp certifier.hh

clean:
	rm -f *.o *.gch frontend
